package com.lzl.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequestMapping("/test")
    public String test(){
        System.out.println("测试成功");
        return "测试成功";
    }

    @PostMapping("/noauthTest")
    public String noauthTest(){
        return "不需要token";
    }

    @PostMapping("/authTest")
    public String authTest(){
        return "需要token";
    }


}
